#ifndef __HardwareProfile_h__
#define __HardwareProfile_h__

//#define Proteus

//#define NoScreen

//#define InSimulation

//#define Test_4M


#include <htc.h>
#define _XTAL_FREQ 4000000
#include "TypeDefine.h"
#include "FlagDefine.h"
//#define WFRomOperation
#include "afx.h"
#include "Verify.h"

#define T1CYCLE_4M 15536 //100ms



#define Uart_Uart1
#define Uart_TRMT TRMT
#define Uart_TXREG TXREG
#include "Uart.h"

unsigned char SerialRxList[30];
unsigned char SerialRxIndex;
unsigned char SerialNeedRxLen;
unsigned char x1;
unsigned char x2;
unsigned char x3;
unsigned char x4;
unsigned char c0_Data;
_GFlags gFlags;

#define BEEPIO RB6


void InitSystem( void );
void Calc(unsigned char rx);
void KeyProc(void);
#endif
